package com.yequan.designpattern.composite.transparent;

/**
 * 图片文件:不支持增删获取子节点操作,仅支持打开自己操作
 *
 * @author yequan
 * @date 2019/12/11
 */
public class Image extends File {

    public Image(String name) {
        this.name = name;
    }

    @Override
    public void showSelf(int deep) {
        super.showSelf(deep);
        System.out.println("图片文件: " + name);
    }

}
